﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model;

namespace l1cs.server.serverpackets
{
    class S_RemoveObject : ServerBasePacket
    {
        private static Logger _log = Logger.getLogger( typeof( S_RemoveObject ).FullName );

        private byte[] _byte = null;

        public S_RemoveObject( L1Object obj )
        {
            writeC( Opcodes.S_OPCODE_REMOVE_OBJECT );
            writeD( obj.getId() );
        }

        override
        public byte[] getContent()
        {
            if ( _byte == null )
            {
                _byte = getBytes();
            }
            return _byte;
        }

        override public String getType()
        {
            return "[S] S_RemoveObject";
        }
    }
}
